<admintpl file="header" />
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<style type="text/css">
	table.cityList {
    margin: 10px 0px;
    border: 1px solid #999;
    text-align: center;
	}
	.actimg{
		width: 80px;
	}
</style>
</head>
<body>
	<div class="wrap">
		<!-- <ul class="nav nav-tabs">
			<li><a href="{:U('ad/index')}">{:L('ADMIN_AD_INDEX')}</a></li>
			<li class="active"><a href="{:U('ad/add')}">{:L('ADMIN_AD_ADD')}</a></li>
		</ul> -->
		<form class="well" method="post" action="{:U('Activites/listActivite')}">
			<input type="text" name="title" placeholder="输入活动名称后查找"> <button type="submit" class="btn btn-primary">查找</button>
		</form>
<table border="1" cellpadding="2" cellspacing="0" width="80%" align="center"  class="activityList table table-hover table-bordered table-list">
	<tr><td>活动id</td><td>城市</td><td>活动标题</td><td>活动图片</td><td>活动状态</td><td>上线时间</td><td>下线时间</td><td>操作选项</td> </tr>
	<volist name="activites" id="activity">
		<tr>
			<td>{$activity['id']}</td>
			<td>{$activity['citynames']}</td>
			<td>{$activity['title']}</td>
			<td><img class="actimg" src="{$activity['smallImage']}" height="20px"></td>
			<td>{$activity['statusName']}</td>
			<td>{$activity['onlineTime']}</td>
			<td>{$activity['offlineTime']}</td>
			<td>
				<eq name="activity[status]" value="1">
					<a href="{:U('Admin/Activites/handelStatus?status=2&id='. $activity['id'])}" class="handelStatus">上线</a>
				</eq>
				<eq name="activity[status]" value="2">
					<a href="{:U('Admin/Activites/handelStatus?status=3&id='. $activity['id'])}" class="handelStatus">下线</a>
				</eq>

					<a href="{:U('Admin/Activites/editActivite?id='. $activity['id'])}" class="handelStatus">编辑</a>

				<neq name="activity[status]" value="-1">
					<a href="{:U('Admin/Activites/handelStatus?status=-1&id='. $activity['id'])}" class="handelStatus">删除</a>
				</neq>
			</td>
		</tr>

	</volist>
</table>

	<div class="pagination">{$pager}</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>